<?php

/** 
 * @author Boo
 * 
 */
interface IModel {
	/**
	 * Get All Entity in DataBase.
	 */
	public function getall($strlimit = NULL);
	/**
	 * Get an Entity in DataBase by ID.
	 */
	public function getbyid(array $id);
	/**
	 * Get All Entity in DataBase.
	 */
	public function insert(array $entity);
	/**
	 * Get All Entity in DataBase.
	 */
	public function update(array $entity);
	/**
	 * Get All Entity in DataBase.
	 */
	public function delete(array $id);
	/**
	 * 
	 * @param String  nametable
	 */
	public function getallbytable($table);
	/**
	 * update status
	 * @param int $id
	 * @param int $status
	 */
	public function updatestatus($id,$status);
	/**
	 * auto generate key for company, car, driver
	 * @param String or int $key
	 */
	public function generateCode($key);
	/**
	 * 
	 * @param unknown $tripid
	 */
	public function deleteListSeatByTrip($tripid);
	/**
	 * return number count of table
	 */
	public function countRow($table);
	/**
	 * return name numberplate ....
	 */
	public function search();
}

?>